package oop01;

/**
 * @author Mark
 * @version 1.0
 * @date 2020/5/16 21:38
 * @description 学生类
 */
public class Student extends Person {

    private String name;

    private String sex;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSex() {
        return sex;
    }

    // static 只有一个在类里
    private static Integer age;

    // 静态代码块 (1) 匿名代码块(2) 构造(3) //静态导入包
    static {

    }

}


